package com.zlp.mall.modules.ums.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value = "用户登录请求参数")
@EqualsAndHashCode(callSuper = false)
public class AdminLoginReq implements Serializable {

    @NotNull(message = "用户名为空!")
    @ApiModelProperty(value = "用户名",required = true)
    private String username;

    @NotNull(message = "密码为空!")
    @ApiModelProperty(value = "密码",required = true)
    private String password;
}
